let path = require('path');
console.log(process.cwd());
//resolve是从执行命令的目录出发的，而非文件所在的目录
console.log(path.join(process.cwd(),'a','b'));//只管连接，
console.log(path.resolve('a','b'));//一定是绝对路径